package com.drawquest.data;

import java.util.Date;

/**
 * @author sad
 */
public class Comment implements Comparable<Comment> {

    private Quest quest;
    private String id;
    private User user;
    private Date date;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Quest getQuest() {
        return quest;
    }

    public void setQuest(Quest quest) {
        this.quest = quest;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public int compareTo(Comment o) {
        return o.getDate().compareTo(getDate());
    }
}
